#!/bin/bash

# 简单的7z批量解压脚本
# 密码: 1024

echo "列出所有7z文件:"
ls -1 *.7z

echo "开始解压..."

for filename in *.7z; do
    if [ -f "$filename" ]; then
        echo "正在解压: $filename"
        7z x -p1024 -o./ -y "$filename"
        echo "完成: $filename"
        echo "------------------------"
    fi
done

echo "所有7z文件解压完成!"